<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf8"/>
    <title>Title</title>
    <link type="text/css" rel="stylesheet" href="/css/list.css"/>
</head>
<body>
<table class="table_list_two" width="910" border="0" cellspacing="0" cellpadding="0">
    <tbody>
    <tr class="title">
        <td>发车时间</td>
        <td>出发/到达</td>
        <td>班次类型/车型</td>
        <td>票价</td>
        <td>余票</td>
        <td>操作</td>
    </tr>

    <c:forEach var="ticket" items="${ticketList}">
        <tr class="border-bottom-1px">
            <td class="start-time">${ticket.startTime}</td>
            <td class="start-end">
                <p><span class="start-icon">始</span> ${ticket.startStation}</p>
                <p><span class="end-icon">终</span> ${ticket.stopStation}</p>
            </td>
            <td class="type">${ticket.type}</td>
            <td class="price"><span class="rmb-icon">￥</span>${ticket.price / 100}</td>
            <td class="stock"><span class="start-icon">余</span> ${ticket.surplusTicket}</td>
            <td class="action"><span class="book-btn">预定</span></td>
        </tr>
    </c:forEach>

    </tbody>
</table>
</body>
</html>